package cn.jinbyte.web.config;

import lombok.Data;

import static cn.jinbyte.web.utils.PathMatcherUtil.DEFAULT_EXCLUDE_URL_PATTERNS;


/**
 * 幂等性拦截配置
 *
 * @author jinty
 */
@Data
public class IdempotentProperties {
    /**
     * 幂等性配置
     */
    private boolean enable = true;
    /**
     * 缓存类型
     */
    private String cacheType = "local";
    /**
     * 拦截路径规则
     */
    private String[] pathPatterns = new String[]{"/**"};
    /**
     * 默认排除的url
     */
    private String[] excludePathPattern = DEFAULT_EXCLUDE_URL_PATTERNS;
}
